Fix to make recovered volumes be accounted for by Usage#6772
Fix to make recovered volumes be accounted for by Usage#6772DaanHoogland merged 3 commits intoapache:mainfrom
Conversation
|
@JoaoJandre did you look at the flow for |
2dbe96a to
ac3c49e
Compare
@DaanHoogland I checked these flows and the event publishes in these places are a bit different, the ones I saw at least already had the |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✖️ el8 ✔️ debian ✖️ suse15. SL-JID 4305 |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4314 |
|
@blueorangutan test |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@harikrishna-patnala @GutoVeronezi can you guys have a look? |
|
Trillian test result (tid-5046)
|
server/src/main/java/com/cloud/storage/VolumeApiServiceImpl.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## main #6772 +/- ##
============================================
- Coverage 10.52% 10.52% -0.01%
- Complexity 6784 6789 +5
============================================
Files 2464 2464
Lines 243988 244171 +183
Branches 38185 38205 +20
============================================
+ Hits 25690 25709 +19
- Misses 215065 215228 +163
- Partials 3233 3234 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
166e846 to
710cf97
Compare
|
Found UI changes, kicking a new UI QA build |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
Found UI changes, kicking a new UI QA build |
|
UI build: ✔️ |
|
@acs-robot a Jenkins job has been kicked to build UI QA env. I'll keep you posted as I make progress. |
|
UI build: ✔️ |
|
UI build: ✔️ |
|
Kudos, SonarCloud Quality Gate passed! |
|
@JoaoJandre almost ready to merge. I might be overcautious but I´d like someone to test the merged code. |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✖️ suse15. SL-JID 4379 |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✖️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 4399 |
|
@blueorangutan package |
|
@rohityadavcloud a Jenkins job has been kicked to build packages. It will be bundled with SystemVM template(s). I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✖️ debian ✔️ suse15. SL-JID 4402 |
|
@blueorangutan test |
|
@rohityadavcloud a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian Build Failed (tid-5091) |
|
@blueorangutan test |
|
@rohityadavcloud a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-5092)
|








Description
When a volume is removed, ACS inserts a
VOLUME.DELETErecord into thecloud.usage_eventtable. If the volume is removed without the expunge option, it can still be restored.When the volume is restored, ACS does not insert a new record in the
cloud.usage_eventstating that it has been recreated. Thus, the volume continues to be used without being accounted for.This PR adds an event in the volume restore process that indicates the volume was recreated. So it will be accounted for.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
This PR was tested in a local lab, by destroying and recreating volumes and checking the DB to see if the event was added.
Some unit tests were also added.